<script setup lang="ts">
defineProps<{
  modalValue: string
  placeholder: string
}>()

const emit = defineEmits(['update:modalValue'])

function handleInput(e: any) {
  emit('update:modalValue', e.detail.value)
}
</script>

<template>
  <textarea :value="modalValue" class="box-border w-full p-30rpx text-28rpx leading-48rpx text-secondary bg-#F8F8F8 rounded-10rpx" :maxlength="-1" :placeholder="placeholder" @input="handleInput" />
</template>
